import instance from "../../global";

/**
 * 查询用户关注数
 * @param userid
 * @returns {Promise<AxiosResponse<any>>}
 */
export function attentionNum(userid) {
    return instance.post("user/user/fansByUserId ", {userId: userid})
};

/**
 * 查询用户粉丝数
 * @param userid
 * @returns {Promise<AxiosResponse<any>>}
 */
export function fansNum(userid) {
    return instance.post("user/user/bean", {userId: userid})
}

/**
 * 查询用户关注的用户
 * @param userId
 * @param userNickname
 * @param pageNum
 * @param pageSize
 * @returns {Promise<AxiosResponse<any>>}
 * @constructor
 */
export function QueryFansParticulars(userId, userNickname, pageNum, pageSize) {
    return instance.get('user/user/queryFansParticulars', {params: {userId: userId,userNickname:userNickname,pageNum:pageNum,pageSize:pageSize}})
}


/**
 *
 * @param userId
 * @param userNickname
 * @param pageNum
 * @param pageSize
 * @returns {Promise<AxiosResponse<any>>}
 * @constructor
 */
export function QueryFansBeanParticulars(userId, userNickname, pageNum, pageSize) {
    return instance.get('user/user/queryFansBeanParticulars', {params: {userId: userId,userNickname:userNickname,pageNum:pageNum,pageSize:pageSize}})
}

/**
 * 查询用户是否是他人粉丝
 * @param userId
 * @param bigvId
 * @constructor
 */
export function FansQuery(userId,bigvId){
    return instance.get('hemo/system/fans/fansQuery',{params:{userId:userId,bigvId:bigvId}})
}


/**
 * 查询用户是否是他人粉丝
 * @param userId
 * @param bigvId
 * @constructor
 */
export function FansFandAll(userId,bigvId){
    return instance.get('hemo/system/fans/fansFandAll',{params:{userId:userId,bigvId:bigvId}})
}
